package com.google.code.kjug.guava.app.data;

import com.google.code.kjug.guava.app.Database;
import com.google.code.kjug.guava.app.domain.Car;
import com.google.code.kjug.guava.app.domain.Make;
import com.google.common.collect.Lists;

import java.util.Collection;

public class OurDatabaseFakeout implements Database {

    public static final Car ACCORD = new Car(2002, Make.HONDA, "Accord");
    public static final Car CHEROKEE = new Car(1992, Make.JEEP, "Cherokee");
    public static final Car WRANGLER = new Car(2011, Make.JEEP, "Wrangler");
    public static final Car BMW_Z3 = new Car(2009, Make.BMW, "Z3");
    public static final Car HONDA_PRELUDE = new Car(1994, Make.HONDA, "Prelude ... runs great!");
    public static final Car HONDA_PRELUDE_AGAIN = new Car(1994, Make.HONDA, "Prelude ... runs great!");

    public Collection<Car> getCars() {
        return Lists.newArrayList(ACCORD, WRANGLER, HONDA_PRELUDE, HONDA_PRELUDE_AGAIN, BMW_Z3, CHEROKEE);
    }

}
